﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents.Design.TypeConverters;
using System.Reflection;

namespace ProgNetComponentsDx.Options.Design
{
    public class CheckedListBoxSettingsConverter : CollectionItemTypeConverter<CheckedListBoxSettings>
    {
        protected override ConstructorInfo GetConstructor(CheckedListBoxSettings item)
        {
            return typeof(CheckedListBoxSettings).GetConstructor(new Type[] { typeof(object), typeof(object) });
        }

        protected override object[] GetConstructorParamters(CheckedListBoxSettings item)
        {
            return new object[] { item.ItemValue, item.OptionId };
        }
    }
}
